tooltip: Remove unused assignment
authorTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 14:36:05 +0000 (15:36 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 14:36:05 +0000 (15:36 +0100)
hide_tooltip  gets overriden in any case 2 lines down, and return_value
isn't used later in that function. The second assignment was introduced
in ef1da5f6c2450fc5f7c7de4a17114cc7507a41ad, directly below the first
assignment.

gtk/gtktooltip.c

index 3ac5ed0218ec32b0adf3a011df5843cd8bef0be1..563a95e5840cb8321b49bfac43388b0fa46b7168 100644 (file)
@@ -1457,12 +1457,9 @@ gtk_tooltip_handle_event_internal (GdkEvent *event)
            tip_area_set = current_tooltip->tip_area_set;
            tip_area = current_tooltip->tip_area;
 
-           return_value = gtk_tooltip_run_requery (&has_tooltip_widget,
-                                                   current_tooltip,
-                                                   &x, &y);
-
-           /* Requested to be hidden? */
-           hide_tooltip = !return_value;
+           gtk_tooltip_run_requery (&has_tooltip_widget,
+                                     current_tooltip,
+                                     &x, &y);
 
            /* Leave notify should override the query function */
            hide_tooltip = (event->type == GDK_LEAVE_NOTIFY);